//
//  FFVector.h
//  ForceField
//
//  Created by Roxanne Brittain on 11/23/11.
//  Copyright (c) 2011 Digifit. All rights reserved.
//

#import <Foundation/Foundation.h>

#ifndef ForceField_FFVector_h
#define ForceField_FFVector_h

enum vectorType {
    position = 0,
    velocity = 1,
    acceleration = 2,
    force = 3,
    electrostaticForce = 4,
    electromagneticForce = 5,
    momentum = 6
    };

class FFVector { 
    
public:
    FFVector(float x, float y) : m_xMagnitude(x), m_yMagnitude(y) {}; 
    void setX(float x) {m_xMagnitude = x;}
    void setY(float y) {m_yMagnitude = y;}
    float getX() {return m_xMagnitude;}
    float getY() {return m_yMagnitude;}
    float getMagnitude() {return sqrtf(m_xMagnitude*m_xMagnitude+m_yMagnitude*m_yMagnitude);}
    vectorType type;
private:
    
    //pixel dimensions
    float m_xMagnitude;
    float m_yMagnitude;

};

#endif